
@SuppressWarnings("rawtypes")
public class EntityKind implements Comparable {
	public static final int METHOD_ENTITY = 1;
	public static final int CLASS_ENTITY = 2;
	public static final int VARIABLE_ENTITY = 3;
	
	private int kind;
	public EntityKind(int kind) {
		this.kind = kind;
	}
	
	@Override
	public int compareTo(Object rhs) {
		EntityKind rhsEntityKind = (EntityKind)rhs;
		return (this.kind - rhsEntityKind.kind);
	}

	public int getKind() {
		return kind;
	}
	
	public String getKindName() {
		if (kind == 1) {
			return "METHODS";
		}else if (kind == 2){
			return "CLASSES";
		}
		return "VARIABLES";
	}
}
